/**
 * AI聊天相关接口类型定义
 */

import { BaseApiResponse } from "./interface";



// AI聊天完成响应
export interface AiChatCompletionsResponse {
  id?: string;
  role?: string;
  content?: string;
  timestamp?: number;
}

export interface AiChatCompletionsApiResponse extends BaseApiResponse<AiChatCompletionsResponse> {}

// 模型Token响应
export interface ModelTokenResponse {
  token: string;
  expiresIn?: number;
  tokenType?: string;
}

export interface ModelTokenApiResponse extends BaseApiResponse<ModelTokenResponse> {}

// RPC客户端响应
export interface RPCClientResponse {
  endpoint?: string;
  appKey?: string;
  accessKeyId?: string;
  accessKeySecret?: string;
  region?: string;
  [key: string]: any;
}

export interface RPCClientApiResponse extends BaseApiResponse<RPCClientResponse> {}

// 更新消息响应
export interface UpdateMessagesResponse {
  id: string;
  audioUrl: string;
  updated: boolean;
}

export interface UpdateMessagesApiResponse extends BaseApiResponse<UpdateMessagesResponse> {}

// AI辩论打分响应
export interface AiDebateScoreResponse {
  scoreId: string;
  totalScore: number;
  scoreDetails?: any;
  feedback?: string;
}

export interface AiDebateScoreApiResponse extends BaseApiResponse<AiDebateScoreResponse> {}

// 讯飞认证URL响应
export interface XunfeiAuthUrlResponse {
  authUrl: string;
  timestamp?: number;
}

export interface XunfeiAuthUrlApiResponse extends BaseApiResponse<XunfeiAuthUrlResponse> {}

// AI配置响应
export interface AiConfigResponse {
  model?: string;
  maxTokens?: number;
  temperature?: number;
  topP?: number;
  [key: string]: any;
}

export interface AiConfigApiResponse extends BaseApiResponse<AiConfigResponse> {}

// 保存消息响应
export interface SaveMessageResponse {
  messageId: string;
  saved: boolean;
  timestamp?: number;
}

export interface SaveMessageApiResponse extends BaseApiResponse<SaveMessageResponse> {}
